# sample makefile
# To make a comment, use #
# Define a Macro: $(macro_name) = value
# Use a marco: $(marco_name)

# compiler
CC = g++

SRC = test_geometry.cpp
OBJ = test_geometry.o
# C++ compiler flags
CCFLAGS = -Wall
# include directories
INCLUDES = -I../include -I/usr/local/include
# library paths
LIBS = -L../lib -lgeometry -lGL -lGLU -lglut 
#compile flags
LDFLAGS = -g

# This is what we want to build
test_geometry: test_geometry.cpp
	$(CC) $^ $(CCFLAGS) $(INCLUDES) $(LIBS) -o $@
# The above line expands to:
# g++ test_geometry.cpp -Wall -I../include -L../lib -lgeometry -lGL -lGLU -lglut 

# if you need to build more, follow the above format and add them here:
# and more
# and more

# remove the old builds
clean:
	rm *.o *~ test_geometry
